package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderReview;
import com.nbsaas.boot.order.api.domain.simple.OrderReviewSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单评价-列表对象转换器
*/

public class OrderReviewSimpleConvert implements Converter<OrderReviewSimple, OrderReview> {




@Override
public OrderReviewSimple convert(OrderReview source) {
    OrderReviewSimple result = new OrderReviewSimple();

                result.setOrderId(source.getOrderId());
                result.setReplyUserName(source.getReplyUserName());
                result.setUserAvatar(source.getUserAvatar());
                result.setRating(source.getRating());
                result.setLikeCount(source.getLikeCount());
                result.setContent(source.getContent());
                result.setReplyContent(source.getReplyContent());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());
                result.setProductSkuId(source.getProductSkuId());
                result.setImages(source.getImages());
                result.setOrderNo(source.getOrderNo());
                result.setProductId(source.getProductId());
                result.setOrderItemId(source.getOrderItemId());
                result.setUserNickname(source.getUserNickname());
                result.setAuditRemark(source.getAuditRemark());
                result.setUserId(source.getUserId());
                result.setAddDate(source.getAddDate());
                result.setTags(source.getTags());
                result.setReplyTime(source.getReplyTime());
                result.setIsAnonymous(source.getIsAnonymous());
                result.setReplyUserId(source.getReplyUserId());
                result.setAuditorId(source.getAuditorId());
                result.setAuditTime(source.getAuditTime());
                result.setReviewStatus(source.getReviewStatus());
                result.setReviewTime(source.getReviewTime());


    return result;
}

}